package com.gary.demo.listener;

import javax.servlet.ServletRequestEvent;
import javax.servlet.ServletRequestListener;
import javax.servlet.annotation.WebListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@WebListener
public class CustomRequestListener implements ServletRequestListener {
    private final Logger logger = LoggerFactory.getLogger(CustomRequestListener.class);
    @Override
    public void requestDestroyed(ServletRequestEvent sre) {
    logger.info("CustomRequestListener requestDestroyed");
    }

    @Override
    public void requestInitialized(ServletRequestEvent sre) {
        logger.info("CustomRequestListener requestInitialized");
    }
}
